home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-screenplay-
/
hd_installers
/
flashbackhd
/
install-flashback
< prev
next >
Wrap
Text File
|
1999-02-08
|
4KB
|
165 lines
; Installer generated by installjst v1.0, a script by JF Fabre
;
; Command line: installjst Flashback f flashback flash dosfilehd
;
(set GameDir "Flashback")
;try to figure out a place where the user usually installs his games
(if (exists "Games:" (noreq) )
(set @default-dest "Games:")
(if (exists "SYS:Games" (noreq) )
(set @default-dest "SYS:Games")
(if (exists "Work:Games" (noreq) )
(set @default-dest "Work:Games")
(if (exists "JEUX:" (noreq) )
(set @default-dest "JEUX:")
(set @default-dest "SYS:")
)
)
)
)
;ask the user to select a directory to install the game into
(set default-dest
(tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
"A drawer called " GameDir " will be created.")
(help @askdir-help)
(default @default-dest)
(newpath)
)
GameDir
)
)
(set @default-dest default-dest)
(message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\n"
"JST is available from aminet (game/patch) or on my site\n\n"
"http://perso.club-internet.fr/jffabre/amiga/patches.html")
;;;; update OSEmu
(if (exists "C:OSEmu.400")
(set install_osemu
(askbool
(prompt "Do you need to update OSEmu os emulation module?"
(help "An outdated version of C:OSEmu.400 won't allow to run the game")
(choices "Update" "Leave")
(default 2)
)
)
)
(set install_osemu 1)
)
(if (= 1 install_osemu)
(copyfiles (source "OSEmu.400")
(dest "C:")
)
)
;;;; end update OSEmu
(set install_mode
(askbool
(prompt "Do you want to install the OS emulated version or normal DOS version?"
(help "OS emulated version allows to quit and is OS independent\n"
"However, it requires more memory (4MB)\n"
"unless you set HDLOAD\n\n"
"Normal DOS version only uses JST as a degrader, needs\n"
"only 1MB to run but it's impossible to quit")
(choices "OS emulated" "Normal DOS")
(default 1)
)
)
)
(if (= 1 install_osemu)
(copyfiles (source "OSEmu.400")
(dest "C:")
)
)
;create the selected directory
(makedir @default-dest
(infos)
)
(copyfiles (source "flashbackhd.readme")
(dest @default-dest)
(infos)
)
(if (= 2 install_mode)
(copyfiles (source "flashback.icon")
(dest @default-dest)
(newname "flashback.info")
)
((copyfiles (source "flashbackhd.icon")
(dest @default-dest)
(newname "flashbackhd.info")
)
(copyfiles (source "flashbackhd")
(dest @default-dest)
))
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 1 in any drive" @app-name))
(dest "Flashback Disk 1")
(help "Insert disk in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "Flashback Disk 1:")
(dest @default-dest)
(all)
)
(message "\n\n\n\n\nI will now patch the executable")
(if
(= 0 (run ("patchexe %s" (tackon @default-dest "flashback") )) )
("")
(abort "Could not patch executable!")
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 2 in any drive" @app-name))
(dest "Flashback Disk 2")
(help "Insert disk in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "Flashback Disk 2:")
(dest @default-dest)
(all)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 3 in any drive" @app-name))
(dest "Flashback Disk 3")
(help "Insert disk in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "Flashback Disk 3:")
(dest @default-dest)
(all)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s disk 4 in any drive" @app-name))
(dest "Flashback Disk 4")
(help "Insert disk in any floppy drive\nor you'll wait for a while!")
)
(copyfiles (source "Flashback Disk 4:")
(dest @default-dest)
(all)
)
;(delete (tackon @default-dest ".info"))